home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nejlepší hry
/
Nejlepsi hry.iso
/
hry
/
sea of chaos
/
sea_install.msi
/
_15C39AAA7726369D39812BD40F01CF6A
/
_FAB28D3C8D714F18A319177234389CAD
< prev
next >
Wrap
Text File
|
2005-03-02
|
555b
|
25 lines
//pixel shader to sample texture and environment map and mixes with material color
//Luke Lenhart
//(C)2004-2005 Digipen Institute of Technology
sampler sampTex;
sampler sampCube;
struct PS_INPUT
{
float2 Tex0 : TEXCOORD0;
float3 Tex1 : TEXCOORD1;
float4 Clr : COLOR;
//float FogClr : TEXCOORD2;
};
float4 PShader(PS_INPUT In) : COLOR
{
float4 clr=0.8f*texCUBE(sampCube,In.Tex1)+0.4f*tex2D(sampTex,In.Tex0); //float4(0.6f,0.14f,0.34f,0);
clr*=In.Clr;
clr.a=In.Clr.a;
//clr.xyz+=In.FogClr;
return clr;
}